Dynagraph Control – Methods
The following table lists and describes methods of the Dynagraph Control. Methods are accessed using the control's script editor.
Note: If a property or method in the script editor has two forms with the same name, one form exists for legacy support and the other form is current. When possible, use the current form. To select the current form, append .X. to the name of the object to which the property or method applies, and then enter the property or method name. For instance, enter MyObject.X.MyProperty. If a property or method in the script editor has only one form, the X method might or might not apply. The
column in the table below indicates whether or not a property or method is accessible using the X method.
The DataGroup parameter referenced in the table below is an integer that identifies a data group instance to operate on. The possible values are:
- 0 – Pumpoff Configuration
- 1 – Status Data (this is a hard coded list of status points in CVS)
- 2 – Current Card
- 3 – Shutdown Card
- 4 – Pumpup Card
- 5 – Reference Card
- 6 – Start Card
- 7 – Fluid Fill Data Group (EIE specific support)
- 8 – Ideal Card
- 9 – Alarm Card
- 10 – Failure Card
Note: For advanced details about scripting these methods, see CxDynagraph Methods.
| Method |
|
Description |
|---|---|---|
|
No |
The AbortAllRequests method aborts all card poll requests. See Aborting Card Requests. |
|
|
No |
The AbortCurrentRequest method aborts all current card poll requests. See Aborting Card Requests. |
|
|
No |
The AboutBox method displays an About dialog box for the control. SyntaxAboutBox() ExampleThe following examples launch an About dialog box for the control. Copy
AboutBox
|
|
|
No |
The AdCalcMethodFilter method adds a calculation method filter to limit downhole cards based on relevant calculation type(s) used in a single transaction. |
|
|
No |
CanGetFromRtu returns true if the user can retrieve data from RTU. The user can retrieve data if they have the necessary security credentials. For card data groups, the user must have necessary security credentials and the EIE must support the particular card type. Syntax
Parameters
Return Values
|
|
|
No |
CanSendToRtu returns true if the user can send data to RTU. Pumpoff configuration and fluid fill data can be sent if the user has the necessary security credentials and the data has been read from the RTU already. Reference cards can be sent if the EIE supports writing reference cards and the user has the necessary security credentials. Syntax
Parameters
Return Values
|
|
|
No |
The ChooseFilter method displays a Facility Chooser dialog box and returns the selected facilities in an array. |
|
|
No |
The ChooseSiteService method displays a Select Service dialog box to select a UIS Site.Service. |
|
|
No |
The ClearCalcMethodFilter method clears a calculation method filter. Results in the display of all available card types. |
|
|
No |
The EditCardTraceSetup method edits a card trace setup. A trace polls current cards at a specified interval for a specified duration, allowing you to closely monitor a well for a short length of time. See Executing a Card Trace. |
|
|
No |
EditData presents a dialog to edit pumpoff configuration or fluid fill data parameters and send changes to the RTU. Syntax
Parameters
Return Values
|
|
|
No |
The ExportCard method exports the card to a text or data file. See Saving Cards. |
|
|
No |
||
|
No |
The GetCardCount method returns the number of cards of the currently chosen card type that the device has. |
|
|
No |
GetCardFromRtu issues a poll for the specified DynaCard data group. Syntax
Parameters
Return Values
|
|
|
No |
GetCardPairFromRtu issues a poll for the two specified DynaCard data groups. Syntax
Parameter
Return Values
|
|
|
No |
||
|
No |
||
|
No |
||
|
No |
GetFromRtu issues a poll for the specified data group. Syntax
Parameter
Return Values
|
|
|
No |
||
|
No |
||
|
No |
||
|
No |
The GetSelectedCardDataElement method returns the data value for a data element in the DDS transaction of the currently selected card. Deid is the name of the data element requested and if it is an ordinalized data element (like the load and position values are). Index is the ordinal of the data element to retrieve. |
|
|
No |
The GetSelectedCardDbKey method returns the DDS database key (DbKey) for the currently selected card. |
|
|
No |
The GetSelectedCardToken method returns the token for the currently selected card. |
|
|
No |
The GetSelectedCardXml method returns the XML for the DDS transaction of the currently selected card. |
|
|
No |
||
|
No |
The IsCardTraceActive method determines whether the card trace is active or not. See Executing a Card Trace. |
|
|
No |
The IsSelectedCardMostRecent method enables a user to call the function to determine whether the selected card is the most recently retrieved card of its type. Boolean value returned. |
|
|
No |
The Navigate method chooses the next pump off control device for the UIS if nNavObject is 0, or the next card for the selected device if nNavObject is 1. If bGoForward is True, this will navigate forwards to the next device or the next card, and if bGoForward is False this will navigate backwards to the previous device or previous card. Calling this function causes the CardChange event to fire if the selected device has a card of the set card type. |
|
|
No |
The Print method prints the contents of the control, grid, or viewer. When this method is called, the Print dialog box is shown to allow configuration. |
|
|
No |
||
|
No |
The RefreshCards method enables you to manually refresh card data and display to see the latest changes. Useful when a dynagraph card depends on another system for calculations, which might create a small lag time in communication between the systems. |
|
|
No |
The RefreshConfig method refreshes the pumpoff configuration display. |
|
|
No |
RefreshDataGroup causes the control to re-read the data group data or status points and refresh the visible values. Syntax
Parameter
Return Values
|
|
|
No |
The RefreshStatus method refreshes the status data display. |
|
|
No |
||
|
No |
The RemoveCard method removes a card from the view set. |
|
|
No |
The SaveReferenceCard method displays the Save as Reference Card dialog box, allowing you to save the selected card as the most recent reference card in your CygNet system. |
|
|
No |
||
|
No |
SendToRtu enables resending of pumpoff configuration or fluid fill data that has already been read from RTU. Syntax
Parameter
Return Values
|
|
|
No |
The SetDynagraph method sets the UIS and facility ID for the desired pump off control device. Calling this function causes the CardChange event to fire if the selected device has a card of the set card type. |
|
|
No |
The ShowCardDetails method displays the Dynagraph Card Details dialog box, displaying card information and position/load pairs. |
|
|
No |
The StartCardTrace method starts a card trace. See Executing a Card Trace for more information. |
|
|
No |


